home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / Kubuntu 8.10 / kubuntu-8.10-desktop-i386.iso / casper / filesystem.squashfs / var / lib / dpkg / info / kubuntu-default-settings.postrm < prev    next >
Text File  |  2008-10-16  |  1KB  |  41 lines

  1. #! /bin/sh
  2. set -e
  3.  
  4.  
  5.  
  6. case "$1" in
  7.   remove|deconfigure|failed-upgrade)
  8.     echo Unsetting kubuntu as default mouse cursor theme ...
  9.     # update-alternatives may fail, e.g. if the auto-configured file has gone
  10.     # This is not a problem for us though (LP: #194101)
  11.     update-alternatives --remove x-cursor-theme \
  12.     /usr/share/icons/kubuntu/index.theme || true
  13.  
  14.   ;;
  15.  
  16.   purge)
  17.         # remove symbolic links on purge again (careful, only if these *are* symlinks, 
  18.         # also don't bail out if s.th. goes wrong (e.g. /media mounted r.o.)
  19.         if [ -h /.hidden ]; then
  20.             rm /.hidden || \
  21.                 echo "Could not remove symlink /.hidden, skipping."
  22.         fi
  23.         if [ -h /media/.hidden ]; then
  24.             rm /media/.hidden || \
  25.                 echo "Could not remove symlink /media/.hidden, skipping."
  26.         fi
  27.         if [ -h /usr/share/hal/fdi/policy/10osvendor/home/20-ntfs-config-write-policy.fdi ]; then
  28.             rm /usr/share/hal/fdi/policy/10osvendor/home/20-ntfs-config-write-policy.fdi || \
  29.                 echo "Could not remove symlink /usr/share/hal/fdi/policy/10osvendor/home/20-ntfs-config-write-policy.fdi, skipping."
  30.         fi
  31.     ;;
  32.  
  33.   upgrade)
  34.         ;;
  35.  
  36.   *)
  37.     echo "Unknown argument ($1) for $0"
  38.     ;;
  39.  
  40. esac
  41.